<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-html指令</title>
</head>
<body>
    <h2>v-html等同于innerHTML</h2>
    <h2>v-text等同于innerTEXT</h2>
    <hr>
    <div id="app">
        <div v-html="msg"></div>
    </div>
    <script src="../utils/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                msg: `
                    <a href="https://www.baidu.com">百度</a>
                `
            }
        })
    </script>
</body>
</html>